import { createSlice } from '@reduxjs/toolkit';
import { initStates, State } from './initState';
import * as reducers from './reducer';

const permissionStore = createSlice({
  name: 'permission',
  initialState: initStates,
  reducers,
});

export const { setMenus } = permissionStore.actions;
export type PermissionState = State;

export default permissionStore.reducer;
